﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
///YHGL 的摘要说明
/// </summary>
public class YHGL
{
  public YHGL()
  {
    //
    //TODO: 在此处添加构造函数逻辑
    //
  }

  public static SqlDataReader GetXX(string sID)
  {
    string sSql = "select * from sys_user where dlm=@0";
    SqlParameter[] cmdParams = { new SqlParameter("@0", SqlDbType.VarChar, 20) };
    cmdParams[0].Value = sID;
    SqlDataReader dr = DbHelperSQL.ExecuteReader(sSql, cmdParams);
    return dr;
  }

  public static DataSet GetDS()
  {
    string sSql = "select ROW_NUMBER() OVER (ORDER BY dlm) AS xh,* from sys_user";
    DataSet ds = DbHelperSQL.Query(sSql);
    return ds;
  }
  public static SqlDataReader GetSFMM()
  {
    string sSql = "select * from sys_sfmmxg";
    SqlDataReader dr = DbHelperSQL.ExecuteReader(sSql);
    return dr;
  }
}